#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main()
{
	char arr1[99] = "aabcd";
	char arr2[99] = "bcaa";
	strcat(arr1, arr1);
	if (strstr(arr1, arr2))
	{
		printf("ok");
	}
	else
	{
		printf("no ok");
	}
	return 0;
}